﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DecoratorPattern.DecoratorClass;

/// <summary>
/// 装饰器模式的基类 使用组合+基础类的方式来实现装饰器模式
/// </summary>
public class StudentDecoratorVideo : BaseDecorator
{
    public StudentDecoratorVideo(AbstructStudent abstructStudent):base(abstructStudent)
    {
    }
    public override void Study()
    {
        base.Study();
        Console.WriteLine("获取视频+课件+代码的会看");
    }
}
